package com.api.league.dao;

import com.api.core.ApiMapper;
import com.api.league.model.League;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author RenQiang
 * @date 2021/5/26
 */
@Mapper
public interface LeagueMapper extends ApiMapper<League> {
    /**
     * 根据参数查询
     *
     * @param paramMap
     * @return
     */
    List<League> selectListByParams(@Param("paramMap") Map<String, Object> paramMap);

    /**
     * 计算比赛日数量
     *
     * @param leagueId
     * @return 影响行数
     */
    Integer countMatchDay(@Param("leagueId") Long leagueId);
}
